package cn.xiongxf.feign;

import cn.xiongxf.domain.Login;
import cn.xiongxf.result.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-uaa",fallbackFactory = LoginFeignClientFallbackFactory.class)
public interface LoginFeignClient {

    //                    记得加类上的路径
    @RequestMapping(value="/login/save",method= RequestMethod.POST)
    JsonResult save(@RequestBody Login login);
}
